package com.liaoyifan.core.annotation;

import com.liaoyifan.core.util.Lock;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DistributedLock {

    String value(); // spEL表达式

    long waitTime() default Lock.WAIT_TIME;

    long leaseTime() default Lock.LEASE_TIME;
}
